"""
DateTime时间模块
    datetime()  指定时间
"""
from datetime import datetime, timedelta

start = datetime(2004,5,6,2,4,15)
end = datetime(2025,9,11,9,47,15)
print(start)
print(type(start))

# 计算时间(计算李欣桐存在多长时间了)
print(end - start)
add_day = timedelta(days=30,hours=1,seconds=1)
print(f'李欣桐满月酒：{start + add_day}') # timedelta 只能和相同数据类型相加

print(add_day)
print(type(add_day))

print(f'李欣桐已经存在{(end-start).total_seconds()}秒')
